import request from '@/utils/request'

// 查询生产类型列表
export function listQyEnterpriseProductionType(query) {
  return request({
    url: '/system/qyEnterpriseProductionType/list',
    method: 'get',
    params: query
  })
}

// 查询生产类型详细
export function getQyEnterpriseProductionType(id) {
  return request({
    url: '/system/qyEnterpriseProductionType/' + id,
    method: 'get'
  })
}

// 新增生产类型
export function addQyEnterpriseProductionType(data) {
  return request({
    url: '/system/qyEnterpriseProductionType',
    method: 'post',
    data: data
  })
}

// 修改生产类型
export function updateQyEnterpriseProductionType(data) {
  return request({
    url: '/system/qyEnterpriseProductionType',
    method: 'put',
    data: data
  })
}

// 删除生产类型
export function delQyEnterpriseProductionType(id) {
  return request({
    url: '/system/qyEnterpriseProductionType/' + id,
    method: 'delete'
  })
}
